//
//  CollectListCell.m
//  A段项目音乐播放
//
//  Created by dllo on 15/6/3.
//  Copyright (c) 2015年 lanou3g.com蓝鸥科技. All rights reserved.
//

#import "CollectListCell.h"
#import "myButton.h"

@implementation CollectListCell
- (void)dealloc
{

    [_button release];
    [_label release];

    [_label release];
    [_button release];

    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
    
}


- (void)create
{
    self.button = [[myButton alloc]initWithFrame:CGRectMake(5, 10, 30, 30)];
    UIImage *image = [UIImage imageNamed:@"add.png"];
//    [_button addTarget:self action:@selector(button:) forControlEvents:UIControlEventTouchUpInside];
    [_button setImage:image forState:UIControlStateNormal];
    [self addSubview:_button];
    
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(40, 10, 200, 30)];
    [self addSubview:_label];
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
